package com.fss.cart.domain;

public class CartItem {
    private Long skuId;
    private Long productId;
    private String skuName;
    private Integer price;
    private Integer stock;
    private Integer minPurchase;
    private Integer maxPurchase;
    private String unit;
    private Integer quantity;

    @Override
    public String toString() {
        return "CartItem{" +
                "skuId=" + skuId +
                ", productId=" + productId +
                ", skuName='" + skuName + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", minPurchase=" + minPurchase +
                ", maxPurchase=" + maxPurchase +
                ", unit='" + unit + '\'' +
                ", quantity=" + quantity +
                '}';
    }

    public CartItem() {
    }

    public CartItem(Long skuId, Integer quantity, String unit, Integer maxPurchase, Integer minPurchase, Integer stock, Integer price, String skuName, Long productId) {
        this.skuId = skuId;
        this.quantity = quantity;
        this.unit = unit;
        this.maxPurchase = maxPurchase;
        this.minPurchase = minPurchase;
        this.stock = stock;
        this.price = price;
        this.skuName = skuName;
        this.productId = productId;
    }

    // Getters and Setters
    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getMinPurchase() {
        return minPurchase;
    }

    public void setMinPurchase(Integer minPurchase) {
        this.minPurchase = minPurchase;
    }

    public Integer getMaxPurchase() {
        return maxPurchase;
    }

    public void setMaxPurchase(Integer maxPurchase) {
        this.maxPurchase = maxPurchase;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
}
